"""
解题思路：
    利用集合的不重复性解答
"""

class Solution(object):
    def containsDuplicate(self, nums):
        """
        :type nums: List[int]
        :rtype: bool
        """
        newNUMS = set(nums)
        if len(newNUMS) < len(nums):
            return True
        return False